﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D85 RID: 3461
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PunkLordMonsterKey : IMessage<PunkLordMonsterKey>, IMessage, IEquatable<PunkLordMonsterKey>, IDeepCloneable<PunkLordMonsterKey>, IBufferMessage
	{
		// Token: 0x17002BEF RID: 11247
		// (get) Token: 0x06009B53 RID: 39763 RVA: 0x0019F538 File Offset: 0x0019D738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PunkLordMonsterKey> Parser
		{
			get
			{
				return PunkLordMonsterKey._parser;
			}
		}

		// Token: 0x17002BF0 RID: 11248
		// (get) Token: 0x06009B54 RID: 39764 RVA: 0x0019F53F File Offset: 0x0019D73F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PunkLordMonsterKeyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002BF1 RID: 11249
		// (get) Token: 0x06009B55 RID: 39765 RVA: 0x0019F551 File Offset: 0x0019D751
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PunkLordMonsterKey.Descriptor;
			}
		}

		// Token: 0x06009B56 RID: 39766 RVA: 0x0019F558 File Offset: 0x0019D758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordMonsterKey()
		{
		}

		// Token: 0x06009B57 RID: 39767 RVA: 0x0019F560 File Offset: 0x0019D760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordMonsterKey(PunkLordMonsterKey other) : this()
		{
			this.uid_ = other.uid_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009B58 RID: 39768 RVA: 0x0019F591 File Offset: 0x0019D791
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordMonsterKey Clone()
		{
			return new PunkLordMonsterKey(this);
		}

		// Token: 0x17002BF2 RID: 11250
		// (get) Token: 0x06009B59 RID: 39769 RVA: 0x0019F599 File Offset: 0x0019D799
		// (set) Token: 0x06009B5A RID: 39770 RVA: 0x0019F5A1 File Offset: 0x0019D7A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17002BF3 RID: 11251
		// (get) Token: 0x06009B5B RID: 39771 RVA: 0x0019F5AA File Offset: 0x0019D7AA
		// (set) Token: 0x06009B5C RID: 39772 RVA: 0x0019F5B2 File Offset: 0x0019D7B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x06009B5D RID: 39773 RVA: 0x0019F5BB File Offset: 0x0019D7BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PunkLordMonsterKey);
		}

		// Token: 0x06009B5E RID: 39774 RVA: 0x0019F5C9 File Offset: 0x0019D7C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PunkLordMonsterKey other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009B5F RID: 39775 RVA: 0x0019F608 File Offset: 0x0019D808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009B60 RID: 39776 RVA: 0x0019F660 File Offset: 0x0019D860
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009B61 RID: 39777 RVA: 0x0019F668 File Offset: 0x0019D868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009B62 RID: 39778 RVA: 0x0019F674 File Offset: 0x0019D874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Uid);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009B63 RID: 39779 RVA: 0x0019F6CC File Offset: 0x0019D8CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009B64 RID: 39780 RVA: 0x0019F724 File Offset: 0x0019D924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PunkLordMonsterKey other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009B65 RID: 39781 RVA: 0x0019F774 File Offset: 0x0019D974
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009B66 RID: 39782 RVA: 0x0019F780 File Offset: 0x0019D980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003BE4 RID: 15332
		private static readonly MessageParser<PunkLordMonsterKey> _parser = new MessageParser<PunkLordMonsterKey>(() => new PunkLordMonsterKey());

		// Token: 0x04003BE5 RID: 15333
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003BE6 RID: 15334
		public const int UidFieldNumber = 1;

		// Token: 0x04003BE7 RID: 15335
		private uint uid_;

		// Token: 0x04003BE8 RID: 15336
		public const int MonsterIdFieldNumber = 2;

		// Token: 0x04003BE9 RID: 15337
		private uint monsterId_;
	}
}
